using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter07
{
	/// <summary>
	/// Example12: Power Delivered by an Elevator Motor
	/// An elevator car has a mass of 1600 kg is carrying passengers 
	/// having a combined mass of 200 kg.
	/// A constant friction force of 4000 N retards its 
	/// motion upward, as shown in Figure 7.19a.
	/// (A) What power delivered by the motor is required
	/// to lift the elevator car at a constant speed of 3.00 m/s?
	/// P = 6.48 \times 10^4 W
	/// (B) What power must the motor deliver at the instant the 
	/// speed of the elevator is v if the motor is designed to 
	/// provide the elevator car with an upward acceleration
	/// of 1.00 m/s^2?
	/// P = 2.34 \times 10^4 v
	/// </summary>
	public class Example12
	{
		public Example12()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 1600.0+200.0;
			L.Force f = new L.Force();
			f.Y = 4000.0+m.kg*L.Constant.AccelerationOfGravity;
			L.Velocity v = new L.Velocity();
			v.Y = 3.0;
			L.Power pow = new L.Power(f,v);
			result += Convert.ToString(pow.W)+"  ";
			//(B)
			result += "Read the book";
		}
	}
}
